Skip to content

feat(service-knowledge): search_knowledge takes scope, granularity and groupBy - #37393

Merged
objectstack-fleet[bot] merged 6 commits into
mainfrom
claude/project-thread-dlk17q
Nov 26, 2026
Merged

objectstack-fleet[bot] merged 6 commits into
mainfrom
claude/project-thread-dlk17q

Conversation

@objectstack-fleet

@objectstack-fleet objectstack-fleet Bot commented Nov 26, 2026 •

Copy link
Copy Markdown
Contributor

Requested by Warren · project thread

Fixes #37311

Clause-②: yes
Metadata-protocol: none

维护者速读

  • 外部 AI(MCP)和应用内对话用的知识检索工具多了三个参数:只在指定的几条记录里搜(比如一份制度),按记录返回而不是按片段,按某个字段分组返回(「哪几份制度」);每条结果还带上所在章节标题和分组的值。
  • 属于知识检索平台化专题(阶段三第 12 行),让制度问询可以先找「哪几份制度」,再在其中一份里细查。
  • 出错只会让这三个新参数被拒或答空,已有的检索调用照旧;回答里从不透露被权限或范围过滤掉的条数,也不暴露隐藏的知识源;可直接撤回。
  • 无。

What changes

ADR-0161 K9, rule 2: the one search_knowledge definition (packages/services/service-knowledge/src/knowledge-tools.ts) gains scope, granularity and groupBy, the options IKnowledgeService.search already reads (#37103 for the last two, #37308 for the first). No transport adds or edits an argument: the MCP HTTP door and stdio register the definition as handed over, and the hosted agent registers the same one through objectstack-ai/cloud#4933.

The definition. SEARCH_KNOWLEDGE_PARAMETERS declares:

  • scope: minItems: 1, maxItems: 10 entries of { object, ids } (additionalProperties: false), ids minItems: 1, maxItems: 500; every name and id minLength: 1, maxLength: 255.
  • granularity: enum: ['chunk', 'record'].
  • groupBy: minLength: 1, maxLength: 255.

The description tells the model when to use each one, and names the two new hit members, groupValue (the stored value: a string, a number or a list) and headingPath. Under groupBy, an object source that does not list the field answers nothing, and a file / http source answers one hit per document with no groupValue. topK's text now says it counts records or groups in those modes. New exports: SEARCH_KNOWLEDGE_MAX_SCOPE_ENTRIES (10) and SEARCH_KNOWLEDGE_MAX_SCOPE_IDS (500), read from the service's own SEARCH_SCOPE_MAX_ENTRIES / SEARCH_SCOPE_MAX_IDS, and SEARCH_KNOWLEDGE_MAX_NAME_LENGTH (255), with the types SearchKnowledgeScopeEntry and SearchKnowledgeGranularity.

The door (parseInput). The executor refuses each malformed value VALIDATION_ERROR (400) before the service is asked, and the message names the argument. Over MCP, a shape the schema states (an empty or over-long scope, a string over 255 characters, an unknown granularity or key) is refused first by the SDK's input validation: -32602, naming the argument, with no ADR-0112 code. The coded refusal answers what the schema cannot state (a NUL, groupBy with "chunk"), and everything the in-product agent sends. Carried from the #37308 reviews:

  • An id, object name or field name holding a NUL character is refused. So is one over 255 characters. The bound is the length the platform stores a record id and an object name in (sys_recycle_bin.record_id / object_name, maxLength: 255).
  • A refusal that repeats a caller's string quotes it with JSON.stringify, so a control character reads as its escape, and cuts it to 64 characters. It lists at most five strings, then "and N more". At the executor, this also covers the two refusals that existed before this PR: an unknown key, and an unknown sourceIds entry. Over MCP, the SDK's refusal of an unknown key repeats it as sent; that path predates this PR and the seat files it separately.
  • groupBy with granularity: 'chunk' is refused at the door, naming groupBy. The service refuses it too.

The executor. It hands scope, granularity and groupBy to searchWithRefusals as its options of the same names. aiExposed stays enforced here (K9 rule 3). The service is asked only about exposed sources, so a scope entry or groupBy field that only a withheld source would answer gets exactly the answer one no source answers: no hits.

The answer. hitOf stays a whitelist and gains two members:

  • headingPath, where the passage has one.
  • groupValue: under groupBy, metadata[groupBy], and only for an object source that lists that field in metadataFields. Source admission holds every listed field queryable by the caller.

chunkId, docHash and metadata never reach the answer. Nothing in the answer counts hits that the permission re-check or the scope removed (K9 rule 6).

Docs. content/docs/ai/knowledge-rag.mdx gains a section on the search_knowledge tool: the six arguments, the hit's members, where the tool is stricter than the service, and the withheld-source rule.

Surface widened (claim amended by the seat at 2026-11-26 01:15Z, for this test only). packages/mcp now dev-depends on @objectstack/service-knowledge, with one source alias in packages/mcp/vitest.config.ts and its importer line in pnpm-lock.yaml. This is the same arrangement service-record-context already has. The transport test needs the REAL definition: registerKnowledgeTools silently registers nothing when z.fromJSONSchema cannot convert a definition (mcp-http-tools.ts, registerKnowledgeTools), and the nested scope schema is the shape that could trip that conversion. It converts whole: no change to the definition's shape was needed.

Tests

  • service-knowledge knowledge-tools.test.ts (56 cases, 22 of them new refusals) checks the following against the real KnowledgeService:
    • the declared bounds;
    • the description naming each argument and member;
    • every malformed shape refused, naming its argument, with no raw NUL and no over-long string in the message;
    • message quoting and cutting, and a short string holding a quote, a newline and a NUL repeated only as its JSON escape;
    • the three options reaching searchWithRefusals unchanged;
    • record mode answering one hit per record, groupBy one per group with its groupValue, and scope only the named records;
    • groupBy over a file source whose hit carries metadata[groupBy]: one hit per document, no groupValue (the guard in hitOf);
    • the hit whitelist, read as a whole object (headingPath and groupValue present; docHash, chunkId and metadata absent);
    • a whole answer, read with toEqual, carrying no count when the re-check and the scope both removed hits;
    • the withheld-source answers: a scope and a groupBy that only a withheld source would answer, compared with an absent object and an absent field. The answers are identical, the withheld adapter is never asked, and the adapters asked are the same.
  • mcp mcp-knowledge-tools.test.ts (18 cases, 6 of them new) runs the real definition and executor behind a stdio bridge, over HTTP and over stdio:
    • tools/list returns byte-identical search_knowledge definitions with the three arguments. Stdio is read raw off the transport, because the SDK client's result parse re-orders an input schema's keys. The listed input schema, less $schema, equals the definition's parameters by toEqual, so any transport-side schema edit is red.
    • granularity: 'record', groupBy and scope each answer the same text on both doors, with the expected hits.
    • A scope past its bound is refused by the SDK's schema check before the bridge is called: isError, -32602, naming scope, the same text on both doors.
    • A NUL in a scope id reaches the executor and answers its coded VALIDATION_ERROR naming scope, the same text on both doors.
Local runs at 44e00dc, 1ebae53 and 4a2b34e
  • At 44e00dcf (the L1 round): knowledge-tools.test.ts 56/56; mcp-knowledge-tools.test.ts 18/18; both packages' typecheck green; eslint --no-inline-config on the three touched source/test files clean; check-nul-bytes OK. Ablations through scripts/ablation-replace.mjs, each restored blob == HEAD: the groupValue guard removed, 1 red (S2); JSON.stringify replaced by plain quotes in quoted, 1 red (S3); registerKnowledgeTools rewriting groupBy's schema before conversion, 2 red over MCP (S4).
  • At 1ebae539: knowledge-tools.test.ts 54/54; mcp-knowledge-tools.test.ts 17/17; pnpm --filter @objectstack/service-knowledge --filter @objectstack/mcp typecheck green. 1ebae539 only bounds the two new engine doubles by the caller's limit (CI's check:objectql-double-limit caught the MCP one as limit-blind at 4a2b34e8; it is green locally now).
  • At 4a2b34e8: pnpm --filter @objectstack/service-knowledge test: 13 files, 414/414; pnpm --filter @objectstack/mcp exec vitest run: 85 files, 1520/1520.
  • node scripts/check-nul-bytes.mjs: OK.
  • Ablations at 4a2b34e8, run in a scratch worktree through scripts/ablation-replace.mjs (dependencies' dist/ linked in), one change each. Every one was restored with blob == HEAD and an empty git diff HEAD.
    • scope not handed to the service: 4 red in knowledge-tools.test.ts; 1 red over MCP (scope on both doors).
    • granularity not handed over: 1 red over MCP. groupBy not handed over: 1 red over MCP.
    • docHash added to hitOf: 2 red (the whitelist, the whole answer).
    • groupValue never set: 2 red.
    • The NUL check removed: 3 red (object, id, groupBy).
    • The aiExposed filter removed: 9 red.
    • The 64-character cut removed: 1 red.

Acceptance notes

  1. The door is stricter than the service, deliberately. An empty scope and an entry with no ids are refused at the tool, where IKnowledgeService.search answers them with no hits. This matches the tool's own rule for an empty sourceIds: a call that names nothing would answer no passage, which the description tells the model to report as "nothing matched". The service keeps its row-11 behaviour for its own callers. The reviewer should confirm this reading of "bounded as row 11 bounds it" (card item 1).
  2. groupValue is the stored value, unparsed. It is a string for a text or lookup field and can be a number, a boolean or a list (a multiple lookup). It is typed unknown and the description does not promise a type. A file / http hit under groupBy carries none, because it stands for its document.
  3. sourceIds items gain no length bound. Only the refusal message cuts them. The carried rule names the scope's ids, and adding maxLength to sourceIds would change an existing argument's schema.
  4. The doc section is new. The page had no tool section before, only the in-product callout.
  5. L1 round 1 (PR comment 7180869252): M1 and S2 to S5 are done as listed above; nits 6, 7 and 9 are done; nit 8 (format characters, UTF-16 against code points) is not taken, since both directions are the stricter or harmless one.

Verification

Read first, by risk:

  1. knowledge-tools.ts, parseScope / isName, and the executor's searchOpts.
  2. knowledge-tools.ts, hitOf: the whitelist and the groupValue guard.
  3. mcp-knowledge-tools.test.ts, the last describe (the real definition on both doors).

Two-minute check: pnpm --filter @objectstack/mcp exec vitest run --maxWorkers=2 src/mcp-knowledge-tools.test.ts → 18 passed, including "tools/list over HTTP and over stdio answer byte-identical definitions, carrying scope, granularity and groupBy".

Gates. The local derived set: dispatch-gates --commands, 114 commands, reconciled with --ran. 111 exited 0. 3 exited 3, PREREQUISITE NOT MET, and are NOT MEASURED locally; CI runs them:

  • check-plugin-teardown-shape --self-test: the clone is shallow.
  • check:skill-examples (spec): the client dist/ is not built.
  • check:dual-build-cjs-loads: a package has no dist/.

Commands 1 to 60 ran on the 4a2b34e8 tree, and 61 to 114 on 1ebae539. The only change between the two is the test doubles.

CI at 1ebae539: 64 success, 11 expected skips, 0 failed, mergeable_state clean (the seat's reading). CI at 44e00dcf: to be read at hand-back. The local derived set above was not re-run for 44e00dcf: its delta is one description sentence, two constants now read from the service, test cases and prose.

The docs drift check names 20 hand-written pages. I re-read the six that name search_knowledge, and none of them is falsified. connect-mcp.mdx's tool row does not mention the three new arguments, but it is still true as written.

🤖 Generated with Claude Code

https://claude.ai/code/session_01JQwxbXPpBL56eaDCJ6MFm4


Generated by Claude Code

…d groupBy

ADR-0161 K9 rule 2: the one search_knowledge definition gains the three
arguments the knowledge service reads; the executor bounds and hands them
over, the hit gains headingPath and groupValue, and MCP pins the real
definition over HTTP and stdio.

Co-Authored-By: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01JQwxbXPpBL56eaDCJ6MFm4
@github-actions github-actions Bot added size/l dependencies Pull requests that update a dependency file documentation Improvements or additions to documentation tests tooling Fix lands in tooling, not a product package — enters pm:queue only with Unblocks: or a named surface labels Nov 26, 2026
@github-actions

github-actions Bot commented Nov 26, 2026 •

Copy link
Copy Markdown
Contributor

📓 Docs Drift Check

This PR changes 2 package(s): @objectstack/mcp, @objectstack/service-knowledge, touching 26 documentable anchor(s). ⚠️ 1 changed file(s) yielded no anchor (packages/mcp/vitest.config.ts), so the pages documenting them are NOT COVERED by this run — this is not a clean bill of health for those files.

20 hand-written doc(s) name something this change touched — list omitted above 15 rows. Re-derive on the tree named below: node scripts/docs-audit/affected-docs.mjs --json e8740c55f0eaba7571c16a5588c833fe29e176ac.

⛔ 5 release-owned page(s) also affected — read-only, see AGENTS.md Documentation Guardrails.

What this run could not see
  • 1 changed file(s) yielded no anchor (packages/mcp/vitest.config.ts) — pages documenting those are invisible to this run
  • 1 anchor(s) matched too much of the corpus to be a work list: VALIDATION_ERROR (literal, 39 pages)
  • 4 name(s) were too generic to anchor anything (single lowercase words)
  • the SDK route bridge reached 69 of 252 client-bound route-ledger rows — the other 183 have no registrar path: tail to select them, so pages documenting THEIR client methods cannot appear above, on this or any run. Of those 183: 0 are remediable by widening that discovery convention (an in-repo file declares the path; the convention did not scan it); 59 are structural — on a ledger where NOT ONE row is declared in-repo, so no discovery change reaches them at any price; 124 are undecided (no in-repo declaration, on a ledger that has other in-repo registrars — absence and an unreadable spelling are not distinguishable here). The rows themselves: node scripts/docs-audit/affected-docs.mjs --bridge-coverage
  • a page that states a rule by its inputs shares no identifier with the emitter that implements the rule, so an emitter-only diff cannot list it — not on this run and not on any run. Measured on fix(driver-sql): emit varchar(maxLength) for a text field a declared index keys on #11430: content/docs/protocol/objectql/types.mdx documents the text-family column mapping by the ObjectQL type names it maps FROM (text / textarea / html) while the diff changed createColumn; it went unlisted, and it was the page that diff falsified, in four places. No shared token exists to detect this on, so a rule your change carries has to be re-read by hand in the pages that restate it.
  • a key NAME is not a key, so the hand re-read the line above prescribes can land on the wrong schema. The same spelling is authorable on one governed type and a [REMOVED] tombstone on another for each of active, aria, joins, objects, template, tools and version (censused on [finding] tools is a key on BOTH AgentSchema (tombstoned, dead) and SkillSchema (live, cloud-attested), so a name-based search attributes skill examples to the agent key — it produced a false stop-the-line alarm on PR #19059 #19093 over the liveness ledger's governed types, top-level keys); nothing in a search result distinguishes the two, so a grep hit on a LIVE example reads as evidence about the DEAD key. Measured on fix(spec): the agent.tools liveness row says dead — it claimed live on a key the schema tombstoned #19059: content/docs/ai/agents.mdx was reported as contradicting the agent.tools tombstone over its tools: example at :161, which is inside the defineSkill({ block opened at :155 — the page was already correct. Settle ownership by PARSING the value against both schemas, never by the name: that literal PASSES SkillSchema, and as an AgentSchema it FAILS at tools with the tombstone prescription. ⛔ These names are not the whole class — a key retired through a .strict() guidance map leaves no tombstone in the walked shape and none of them here (tool.category, live as AIToolDefinition.category).

Coarse fallback — 13 page(s) merely mention a changed package (the pre-#9192 predicate, kept for the deliberately-wide backstop): node scripts/docs-audit/affected-docs.mjs --json e8740c55f0eaba7571c16a5588c833fe29e176ac → packageMentionDocs.

Which tree this was computed on

This run read content/docs from 0aa1be7c32a6d38e81eff394b446644c5cc2da3a — the merge of head 44e00dcf1b4ff8bdda1910184d03f2c0fbed1ea7 into base e8740c55f0eaba7571c16a5588c833fe29e176ac, which is what actions/checkout gives a pull_request run. Not the PR head.

A worktree cut from an older main holds a different content/docs, so re-deriving there can legitimately return a different list — that is a different tree, not a wrong row. To answer on the same tree:

# while this PR is open — GitHub drops the merge commit once it closes
git fetch origin 0aa1be7c32a6d38e81eff394b446644c5cc2da3a && git checkout 0aa1be7c32a6d38e81eff394b446644c5cc2da3a
# afterwards, rebuild it from the two parents, which stay fetchable
git fetch origin e8740c55f0eaba7571c16a5588c833fe29e176ac 44e00dcf1b4ff8bdda1910184d03f2c0fbed1ea7 && git checkout -B drift-repro e8740c55f0eaba7571c16a5588c833fe29e176ac && git merge --no-ff 44e00dcf1b4ff8bdda1910184d03f2c0fbed1ea7

node scripts/docs-audit/affected-docs.mjs --json e8740c55f0eaba7571c16a5588c833fe29e176ac

⚠️ That checkout carried uncommitted changes, so the commit above does not fully identify what was read.

Advisory only, and a precision-first one (#9192): a page is listed because it names a
symbol, wire route or SDK method this diff touched — not because it mentions a changed
package. Each row says which anchor put it there, so a wrong row is reportable rather than
merely annoying. To re-verify, run the docs-accuracy-audit workflow scoped to these files:
node scripts/docs-audit/affected-docs.mjs e8740c55f0eaba7571c16a5588c833fe29e176ac → pass the list as
args.docs, on the commit named under Which tree this was computed on.

…ilter

check:objectql-double-limit flagged the MCP transport test's find double as
limit-blind; the service-knowledge double gets the same bound.

Co-Authored-By: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01JQwxbXPpBL56eaDCJ6MFm4
@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:cloud#1 · os-warren · session_01JQwxbW5anP6GDaVi5LKi2U

维护者速读

  • 这个改动给 AI 用的知识检索工具加了三个参数:只在指定记录里搜、按记录返回、按字段分组返回。代码本身复核下来是对的:权限没有被放宽,隐藏的知识源不会被探出来,被过滤掉的条数也不会告诉 AI。
  • 复核结论:退回补一轮,暂不排队。原因有两类:一是工具说明和文档里有一句话与实际行为不符(按字段分组时,文件类知识源其实仍会返回结果,说明里写的是"不返回");二是有三处安全相关的行为目前没有测试守住,以后被改坏不会报警。
  • 另外发现一件不属于本次改动的事:通过 MCP 调用时,参数格式错误大多由 MCP 协议层先拦下,它的报错会把调用方写错的参数名原样带回。这是所有 MCP 工具早就有的行为,建议另开一张卡处理,不挡这个改动。
  • 需要您做的:无。

席位核对

REWORK — the executor is correct against K9 rules 2, 3, 5 and 6 and every check at the head is green, but one sentence of the definition's description (repeated in the docs and the changeset) is false for file / http sources under groupBy, and three security-bearing behaviours have no failing test. Five findings, M1 and S2 to S5, graded in the contract record below, and four nits; a delta round follows.

Head-sha: 1ebae53960989f6bd358a07034859776dac31625

First review of this PR. Five commits on merge base db77cc493abf5a5553e2ef52969e246b37c3c8b5; 8 files, +713 / -17. main is 8 commits ahead at ff6f9768; none of them touches packages/services/service-knowledge, packages/mcp, the spec contracts or packages/runtime/src/domains/mcp.ts. Head re-read at 2026-11-26T02:27Z: unchanged.

形态

  • Open, draft, base main, first line Fixes #37311, the only closing keyword in the body. Body and changeset read Clause-②: yes · Metadata-protocol: none. Fixes is right: card items 1 to 5 are all in the diff.
  • Not governed surface: check-governed-merges.mjs --pr 37393 reads 0 of 8 paths on the register, 730 changed lines, under the 3000 threshold.
  • All 8 paths are inside the claim as amended at 01:15Z (comment 7179559203): the definition file and its test, the MCP test, and for that test only the packages/mcp devDependency, its lockfile importer line and one vitest alias; the docs page; the changeset.
  • l1-face.mjs --pr 37393 flags one item: @objectstack/mcp is published and has no changeset entry. Judged below under 接受的偏差.
  • No transport source file is in the diff: mcp-http-tools.ts, stdio-data-bridge.ts and packages/runtime/src/domains/mcp.ts are untouched.

门禁 check-runs (at 1ebae539, read 2026-11-26T02:14Z, every run read by name)

  • 75 check-runs: 64 success, 11 skipped, 0 failed, 0 pending. pr-state.mjs reads all 11 skips as expected skips. Lint & Repo Gates: success. TypeScript Type Check: success. Test Core and all ten shards: success. Test UI and all sixteen shards: success. Check Changeset: success. Governed Surface Queue Guard: success.
  • The dev's count, 62 success and 9 skips, is an earlier reading of the same head; the body owes a refresh (nit 6).
  • Local at 1ebae539, in a scratch worktree, removed afterwards: knowledge-tools.test.ts 54/54; mcp-knowledge-tools.test.ts 17/17. Both needed built dependencies here (@objectstack/metadata-core for the first, @objectstack/core for the second), so the report's "no dist involved" is not what this seat measured. The two full package suites: not measured by this seat; the CI shards stand for them.

逐项核对与消融 (27 single-change ablations at this head, each restored with an empty git diff HEAD)

  1. The three options reach the service — scope, granularity and groupBy each removed from searchOpts: 4, 2 and 3 red in the service-knowledge file, and 1 red each over MCP.
  2. The door's bounds — the NUL check removed: 3 red. The 255 bound removed: 3 red. An empty scope admitted: 1 red. An entry with no ids admitted: 1 red. An unknown entry key admitted: 1 red. groupBy with chunk admitted: 1 red. Every one of the 22 refusal rows asserts code and status.
  3. The hit whitelist — docHash added: 2 red. metadata added: 3 red. chunkId added: 3 red. headingPath dropped: 1 red.
  4. No count — a filtered member added to the answer: 3 red (the whole-answer case and both withheld-source cases).
  5. aiExposed — the filter removed: 9 red. The withheld adapter is never asked, pinned for scope and for groupBy.
  6. The 64-character cut removed: 1 red. The five-string cap removed: 1 red.
  7. NOT pinned — the JSON quoting replaced by plain double quotes: 54/54 green. No case sends a short string holding a quote or a control character to a refusal that repeats it.
  8. NOT pinned — the field guard of groupValue (metadataFields lists the field, object source only) removed: 54/54 green. The dev's "groupValue never set" ablation pins that the value is present, not that it is gated.
  9. NOT pinned — a transport-side edit in registerKnowledgeTools that deletes maxLength from object, the ids and groupBy and rewrites groupBy's description: 17/17 green over MCP. The case compares HTTP with stdio (one registration function serves both), the description, the key set and part of scope. A transport that adds an argument: 1 red.
  10. Probe, the listed schema against the real definition — tools/list over HTTP, keys sorted, equals getKnowledgeToolDefinitions()[0].parameters plus one member, $schema. So the whole-schema pin of item 9 is one toEqual.
  11. Probe, groupBy with an exposed file source — the file source answers one hit per document with no groupValue, for a field the object source lists and for a field no source lists. This is the service's rule (service-knowledge: search returns records, not chunks — granularity and groupBy #37103 item 3) and the description says the opposite.
  12. Probe, 14 refusals over MCP HTTP and stdio — both doors answer the same text in every case. A NUL in an id, an object or groupBy, groupBy with chunk, and an unknown source id reach the executor and answer its coded text. An empty scope, an entry with no ids, a string over 255, an unknown granularity and an unknown key are refused by the SDK's schema check before the executor: MCP error -32602: Input validation error, naming the path, with no code and no status. For an unknown key that text repeats the key as sent: 300 characters, a raw newline and a raw NUL, nine keys listed.

dev 三条备注的裁定

  1. An empty scope and an entry with no ids refused at the door — accepted. "Bounded as row 11 bounds it" is met: 10 entries and 500 ids, the service's numbers. The door only narrows what it takes, as it already does for an empty sourceIds, and K8's note is kept: an empty scope is never read as no filter. It is safe: parseInput runs before the service or its sources are read, so the refusal is the same sentence whatever sources exist, withheld or absent, and it repeats nothing but object of the same entry, quoted and cut. The door refuses everything the service's readSearchScope refuses, so the service's own scope refusal, which repeats a key unquoted, cannot be reached through the tool.
  2. groupValue as stored, typed unknown — accepted, with S2. The value is metadata[groupBy] of the lead hit of the group. Three gates stand before it: source admission asks that the caller may query every metadataFields member (admitSourceFields); the lead hit's record is re-read as the caller; and the freshness check drops a record whose recomputed hash differs, and metadata is in the hash. So it is the value of a field the caller may query, on a record the caller may read, equal to the live value wherever the adapter stores a hash. It is the index copy, on the same footing as the snippet; it is not re-read as the caller, as the title is. A list, a number and an object all pass through as stored (probed). A lookup's value is the parent's id, which the K8 note already lets the caller filter on. What can leak is only what the guard in hitOf stops: a file / http hit's adapter metadata. That guard has no test.
  3. sourceIds items without maxLength — accepted, no change here. An id is trimmed and looked up in the map of exposed sources; an unknown one is refused before any adapter, statement or log line sees it, and the refusal cuts it. A bound on an existing argument is a narrowing and not this card's.

逐句核的散文面

  • Changeset: the sentence on groupBy and the one on a withheld source are true for object sources. With M1 the groupBy sentence gains the file / http arm. "Each malformed argument is refused VALIDATION_ERROR (400) naming it" is true of the executor (S5).
  • content/docs/ai/knowledge-rag.mdx, the new section, 13 sentences and the table read one by one. True: one definition, aiExposed, reads as the person asking; query, sourceIds, topK 1 to 20 default 5; granularity; scope at most 10 entries of 500 ids; the hit's members; sources and refused; an empty scope, an entry with no ids and an empty sourceIds refused; the 255 and NUL rule; no count returned; a withheld source answered as an absent one. False: "A source that does not list the field answers nothing for that call" (M1). True of the executor and not of the MCP door: "Each malformed argument is refused VALIDATION_ERROR (400), naming the argument" (S5). "The in-product agent" serving the definition: cloud#4933 is closed; not measured further by this seat.
  • The definition's description: every argument and both new hit members are named; the bounds match the constants. One false clause, M1.
  • PR body: the What-changes and Tests sections match the diff. Stale or untrue: the CI count; "This also covers ... an unknown key" (true of the executor only).

修复清单 (grades are in the contract record below)

  1. M1 — the description says "a source that does not index that field answers nothing for that search", and the docs and changeset repeat it. A file / http source answers under groupBy, one hit per document, with no groupValue. Say so in the description, in the docs table row and hit sentence, and in the changeset; change no behaviour.
  2. S2 — one case with an exposed file source whose hit carries metadata[groupBy]: its hit has no groupValue. It must go red when the guard in hitOf is removed.
  3. S3 — one case with a short unknown key and a short unknown source id holding a double quote, a newline and a NUL: the refusal carries their escapes. It must go red when quoted stops using JSON.stringify.
  4. S4 — in the MCP case, compare the listed input schema, less $schema, with getKnowledgeToolDefinitions()[0].parameters by toEqual, so that any transport-side schema edit is red.
  5. S5 — the MCP bound case asserts only "an error or isError". Pin what both doors answer: isError, a text naming scope, the same text on HTTP and stdio. In the docs and the PR body, say that an MCP client's schema check refuses a shape the schema states before the tool does, and that the coded refusal is the executor's.
  6. nit — refresh the PR body's CI count (64 success, 11 expected skips) and drop "no dist involved".
  7. nit — SEARCH_KNOWLEDGE_MAX_SCOPE_ENTRIES and SEARCH_KNOWLEDGE_MAX_SCOPE_IDS restate 10 and 500 beside SEARCH_SCOPE_MAX_ENTRIES and SEARCH_SCOPE_MAX_IDS of the same package. Derive them, or assert the two pairs equal.
  8. nit — JSON.stringify leaves format characters such as U+202E as they are; the door counts length in UTF-16 units and a JSON Schema validator counts code points. Both are in the stricter or harmless direction.
  9. nit — the description does not say that groupValue is the stored value and may be a string, a number or a list.

接受的偏差

范围外去向

  • To file by the seat (server lane, packages/mcp): the SDK's input-validation refusal repeats an unknown argument key as sent, unquoted and uncut, on every MCP tool whose schema closes its keys. On search_knowledge the top-level case predates this PR; the scope-entry case is new with the definition's additionalProperties: false and is the same class. The carried rule on caller strings holds at the executor and not on this path.
  • content/docs/ai/connect-mcp.mdx, the search_knowledge row: true as written, not in the claim; dropped.
  • sourceIds item length: dropped, see ruling 3.
  • The hosted in-app agent: objectstack-ai/cloud#4933 (row 13).

落地条款

  • Clause-② declared: the contract record below is not a pass at this head. Not queued. The delta round is the description sentence with its two prose copies, and four test cases; the reviewer of this record reads the delta.
  • A head that moves past prose owes a fresh record.

Contract review

Served-tier: CONTRACT_REVIEW_TIER
Head-sha: 1ebae53960989f6bd358a07034859776dac31625
Local-runs: probe — the two targeted suites, 27 single-change ablations, one schema round-trip probe, one groupBy probe over a file source and 14 refusal probes over both MCP doors were run in a scratch worktree to test the carried security claims; nothing was pushed.
Scope: packages/services/service-knowledge/src/knowledge-tools.ts + packages/services/service-knowledge/src/tests/knowledge-tools.test.ts, packages/mcp/src/mcp-knowledge-tools.test.ts, packages/mcp/vitest.config.ts, packages/mcp/package.json
Security-touching: yes
Rule-change-verified: yes

① Derived judgments

  • The contract is the one search_knowledge definition (K9 rule 1). The diff adds three arguments to it and two members to the hit, and no transport file changes (K9 rules 2 and 4). The arguments are the service's options of the same names, handed over unchanged; the readers landed with feat(service-knowledge): search answers records, not passages — granularity, groupBy and a freshness check #37335 and feat(service-knowledge): search inside chosen records — the record scope, by the records a source indexes or by a parent through a listed lookup #37342.
  • aiExposed stays in the executor (K9 rule 3). The service is asked about exposed sources only, so admission, the scope terms and the group filter are never computed for a withheld source. A withheld source and an absent one give the same answer and the same adapter calls; both cases are pinned.
  • The executor adds no permission and removes none (K9 rule 5): the context is passed whole, and no argument reaches a source the caller's sourceIds could not already reach. scope and groupBy only remove sources and hits. Record granularity widens how many passages each source is asked for, never who may read them.
  • No count (K9 rule 6, K10 rule 4): the answer is hits, sources and refused; the whole answer is read by toEqual with the re-check and the scope both removing hits.
  • K10 rule 3 says the index copy is for ranking and snippets. groupValue is a third use of it. The card asks for the group value by name (item 3) and service-knowledge: search returns records, not chunks — granularity and groupBy #37103 item 3 returns it in the hit's metadata, so this follows the card. It stands behind the field gate, the caller's re-read of the record and the hash comparison, as the snippet does.
  • The face this file list maps to is the declaration alone: no spec schema and no governed path is in the diff. The claim asked for the ceiling tier and this record was served there.

② Semver level

③ Boundary flags

  • The dev's three notes: ruled in the seat section. open_questions: none.
  • SQL push-down: the diff adds no read, no id materialisation and no join. No finding.
  • Existence and count: the answer under each argument is built from hits that passed the re-check; an unreadable record in scope, an absent record and an unindexed one are answered alike. The door's refusals are decided before any source is read.
  • Refusal text: at the executor every repeated caller string is JSON-quoted, cut to 64 characters and capped at five, measured on six refusals. Over MCP the SDK refuses first for the shapes the schema states, and repeats an unknown key as sent. That path is not in this diff and predates it for the top-level key; it goes to a card.
  • Both MCP doors: 14 refusals and 3 answers compared, the same text on HTTP and stdio each time. The listed schema equals the definition's parameters plus $schema.
  • Author: PR user.login is objectstack-fleet[bot].
  • Overlap: none open on these files at this head.

④ Design judgment

packages/services/service-knowledge/src/knowledge-tools.ts

  • The schema and the door agree on every bound, and the door is at least as strict as the service on every shape, so the service's own refusals are unreachable through the tool. Holding the bounds in the definition lets a client refuse early; the door still holds them for a caller that skips the schema.
  • hitOf stays a member-by-member whitelist. The groupValue guard is the right one: object source, field listed. It is the only line that keeps a file / http adapter's metadata out of the answer, and it is unpinned (S2).
  • The description is contract text. One clause of it is untrue for file / http sources (M1).
  • The two constants restate the service's bounds in the same package (seat nit 7).

packages/services/service-knowledge/src/__tests__/knowledge-tools.test.ts

  • 17 of 20 ablations turn cases red. The quoting and the guard do not (S3, S2). The third green one is a line of main, not of this diff.

packages/mcp/src/mcp-knowledge-tools.test.ts, packages/mcp/vitest.config.ts, packages/mcp/package.json

  • Running the real definition and executor behind the stdio bridge is the right test: a definition that did not convert would register no tool. The alias and the devDependency follow the service-record-context arrangement and touch no shipped file.
  • The byte comparison is between two doors that share one registration function, so it cannot see an edit made there; the comparison against the definition is partial (S4). The bound case accepts any error (S5).

M1 (must-fix) — the description, and the docs and changeset after it, say a source that does not index the groupBy field answers nothing; a file / http source answers one hit per document with no groupValue.

S2 (should-fix) — no case goes red when the groupValue field guard is removed.

S3 (should-fix) — no case goes red when the JSON quoting of caller strings is removed.

S4 (should-fix) — the listed schema is not compared whole with the real definition; a transport-side edit of bounds and descriptions stays green.

S5 (should-fix) — the MCP bound case pins no shape, and the docs and PR body state the coded refusal for shapes an MCP client's schema check refuses first.

Implemented-by: session_01JQwxbXPpBL56eaDCJ6MFm4
Reviewed-by: session_01JQwxbW5anP6GDaVi5LKi2U

VERDICT: FAIL

… pin the guard, the quoting and the listed schema

The description, the docs and the changeset said a source without the
groupBy field answers nothing; a file / http source answers one hit per
document with no groupValue. Pin the groupValue guard, the JSON quoting of
a short caller string, the listed MCP schema against the definition, and
what each MCP door answers for a schema-level and an executor-level
refusal. The scope bounds are read from the service's constants.

Co-Authored-By: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01JQwxbXPpBL56eaDCJ6MFm4
@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:cloud#1 · os-warren · session_01JQwxbW5anP6GDaVi5LKi2U

维护者速读

  • 这是上一轮退回后的复核。上一轮指出的问题都已改好:工具说明、文档和变更说明里那句与实际不符的话已改成实情(按字段分组时,记录类知识源没有该字段就不返回,文件和网页类知识源仍按文档各返回一条);三处原先没有测试守住的安全行为现在都有测试,改坏会报警。
  • 这一轮只动了说明文字、测试,以及两个上限数字改为直接取自检索服务,没有改任何行为。
  • 复核结论:通过,可以排队合并。这个版本的自动检查全部为绿。
  • 需要您做的:无。

席位核对

ACCEPT — the five findings of round 1 are closed at this head, each by a case that goes red when its line is removed, and the delta changes no behaviour. Every check at the head is green or an expected skip. One nit is declined with a reason and stays an accepted deviation.

Head-sha: 44e00dcf1b4ff8bdda1910184d03f2c0fbed1ea7

Delta review: one commit on 1ebae53960989f6bd358a07034859776dac31625, no force push; 5 files, +80 / -15. The PR against its merge base db77cc49: the same 8 files, +778 / -17. The rest stands as read in round 1 (PR comment 7180869252). Head re-read at 2026-11-26T02:58Z: unchanged.

形态

  • Open, draft, base main, first line Fixes #37311, the only closing keyword in the body. Body and changeset read Clause-②: yes · Metadata-protocol: none.
  • Not governed surface: check-governed-merges.mjs --pr 37393 reads 0 of 8 paths on the register, 795 changed lines, under the 3000 threshold.
  • The delta touches the changeset, the docs page, the two test files and knowledge-tools.ts. No transport source file, no package.json, no lockfile. All inside the claim.
  • mergeable_state is clean.

门禁 check-runs (at 44e00dcf, read 2026-11-26T02:58Z, every run read)

  • 75 check-runs: 64 success, 11 skipped, 0 failed, 0 pending. pr-state.mjs reads all 11 skips as expected skips. Lint & Repo Gates: success. TypeScript Type Check: success. Test Core and Test UI with all their shards: success. Check Changeset: success. Governed Surface Queue Guard: success.
  • Local at 44e00dcf, in a scratch worktree, removed afterwards: knowledge-tools.test.ts 56/56; mcp-knowledge-tools.test.ts 18/18. The two full package suites: not measured by this seat; the CI shards stand for them.

逐项核对与消融 (5 single-change ablations at this head, each restored with an empty git diff HEAD)

  1. M1, the groupBy sentence — closed. The description now reads: a source of indexed records that does not index the field answers nothing; a file or web source still answers, one hit per document, with no groupValue. The docs table row, the docs hit sentence, the changeset and the groupValue TSDoc say the same. This is what the round-1 probe measured. No behaviour changed: the executor's code lines are as in round 1.
  2. S2, the groupValue guard — closed. The new case registers a file source whose hit carries metadata.policy and reads the whole hit by toEqual. The guard removed: that case red, 1 of 56.
  3. S3, the JSON quoting — closed. The new case sends a key and a source id holding a double quote, a newline and a NUL, asserts code and status on both refusals, the escaped text present, and no raw newline or NUL. JSON.stringify replaced by plain quotes: that case red, 1 of 56.
  4. S4, the listed schema — closed. The listed input schema less $schema is compared with definition.parameters by toEqual. The round-1 transport edit (three maxLength deleted, one description rewritten): red, 1 of 18.
  5. S5, the MCP refusals — closed. The bound case now asserts isError, -32602 and scope in the text, the executor never called, and the same text on HTTP and stdio. A second case sends a NUL id and asserts the coded VALIDATION_ERROR with status 400 on both doors. maxItems removed from the schema: 2 red. The NUL check removed: 1 red. The docs bullet, the changeset and the PR body now say that the coded refusal is the executor's and that an MCP client's schema check refuses a schema-stated shape first.
  6. Nit 6 — done: the body carries the CI count of round 1 and no longer says no dist was involved.
  7. Nit 7 — done: the two constants are read from SEARCH_SCOPE_MAX_ENTRIES and SEARCH_SCOPE_MAX_IDS. Their declared type is now number, not the literal; nothing in the tree reads the literal type.
  8. Nit 9 — done: the description, the docs and the TSDoc say the value is as the index stores it.
  9. Nothing else moved: the delta has no line outside the items above.

逐句核的散文面 (delta sentences)

  • Changeset: the groupBy clause and the sentence on the executor's refusal and the SDK's -32602 — true, as probed in round 1.
  • content/docs/ai/knowledge-rag.mdx: the groupBy row; "absent on a hit of a file or web source"; the MCP sentence listing an empty or over-long scope, a string over 255 characters, an unknown granularity or key; "the coded refusal answers what the schema cannot state, such as a NUL character or groupBy with chunk, and every malformed argument the in-product agent sends" — true of the 14 refusals probed in round 1.
  • The description: the two new sentences — true.
  • PR body: scoped to the executor where round 1 asked; the local-runs block is pinned to 44e00dcf.

修复清单

  • None open.

接受的偏差 (round 1's, plus one)

  • @objectstack/mcp without a changeset entry, the patch level, the full suites not run by this seat: as in round 1.
  • New: nit 8 is not taken (PR Acceptance note 5). Format characters pass the quoting unescaped, and the door counts UTF-16 units where a schema validator counts code points. Both are in the stricter or harmless direction.

范围外去向 (unchanged)

  • To file by the seat (server lane, packages/mcp): the SDK's input-validation refusal repeats an unknown argument key as sent, unquoted and uncut, on every MCP tool whose schema closes its keys. The docs now state the path; the echo itself is not this PR's.
  • objectstack-ai/cloud#4933 (row 13) carries the in-app agent.

落地条款

  • Clause-② declared: the contract record below is PASS at this head. Queue only when every check at the landing head is green or an expected skip. A head that moves past prose owes a fresh record.

Contract review

Served-tier: CONTRACT_REVIEW_TIER
Head-sha: 44e00dcf1b4ff8bdda1910184d03f2c0fbed1ea7
Local-runs: probe — the two targeted suites and 5 single-change ablations were run in a scratch worktree to confirm that each round-1 finding now has a failing test; nothing was pushed.
Scope: packages/services/service-knowledge/src/knowledge-tools.ts + packages/services/service-knowledge/src/tests/knowledge-tools.test.ts, packages/mcp/src/mcp-knowledge-tools.test.ts, packages/mcp/vitest.config.ts, packages/mcp/package.json
Security-touching: yes
Rule-change-verified: yes

① Derived judgments

  • Round 1 stands: three arguments enter the one definition, are handed to the service unchanged, and no transport file changes. The delta changes the description text, two constants' source and tests.
  • The description, as contract text, now states what the executor does for both kinds of source under groupBy.
  • The scope bounds are now the service's own constants, so the definition cannot drift from the bounds row 11 holds.

② Semver level

  • Unchanged: Clause-②: yes, Metadata-protocol: none, @objectstack/service-knowledge at patch. The delta adds no argument and no answer member.

③ Boundary flags

  • The dev's notes: ruled in round 1; note 5 of the body (the declined nit) is accepted. open_questions: none.
  • SQL push-down: the delta adds no read. No finding.
  • Refusal text over MCP: both doors are now pinned to the same text for a schema-stated shape and for a shape only the executor refuses. The SDK's echo of an unknown key stays out of this diff and goes to a card.
  • Author: PR user.login is objectstack-fleet[bot].
  • Overlap: none open on these files at this head.

④ Design judgment

packages/services/service-knowledge/src/knowledge-tools.ts

  • Holds as in round 1. The description is true for object, file and web sources. Reading the bounds from knowledge-search-scope.ts is the right direction: one source for the numbers.

packages/services/service-knowledge/src/__tests__/knowledge-tools.test.ts

  • The guard and the quoting each have a case that goes red without them. The file-source case reads the whole hit, so any new member on it is red too.

packages/mcp/src/mcp-knowledge-tools.test.ts, packages/mcp/vitest.config.ts, packages/mcp/package.json

  • The whole-schema comparison makes a transport-side edit red whichever door it is made on. The two refusal cases state which layer answers which shape. The config and manifest are as in round 1.

M1 (must-fix): closed.

S2 (should-fix): closed.

S3 (should-fix): closed.

S4 (should-fix): closed.

S5 (should-fix): closed.

Implemented-by: session_01JQwxbXPpBL56eaDCJ6MFm4
Reviewed-by: session_01JQwxbW5anP6GDaVi5LKi2U

VERDICT: PASS

@objectstack-fleet
objectstack-fleet Bot marked this pull request as ready for review November 26, 2026 03:01
@objectstack-fleet
objectstack-fleet Bot added this pull request to the merge queue Nov 26, 2026
@github-merge-queue
github-merge-queue Bot removed this pull request from the merge queue due to failed status checks Nov 26, 2026
@objectstack-fleet
objectstack-fleet Bot added this pull request to the merge queue Nov 26, 2026
@github-actions

Copy link
Copy Markdown
Contributor

⛔ merge queue 构建失败 — 先分诊,再决定要不要重排

队列构建 45747428966 红了。队列跑的是全量套件(PR 侧 CI 只跑 affected 子集),
所以失败的测试可能在本 PR 没碰过的包里 —— 那不是重排能修的。每次盲目重排都会让排在后面的所有 PR 重建一轮。

分类:failure —— 按下面的日志分诊。

失败的 job(日志抽取,best effort):

  • Test UI (10/16) — 失败步骤: Run the ui tests (shard 10/16)

    × a name save keeps the id and the email, takes the new name, and remounts nothing 14ms
    FAIL   dom  packages/auth/src/__tests__/AuthProvider.test.tsx > updateUser keeps the signed-in identity (objectstack#36972) > a name save keeps the id and the email, takes the new name, and remounts n
      ↳ 失败原因: AssertionError: expected 2 to be 1 // Object.is equality
    

↳ 失败原因 是判读的关键:超时(Test timed out in … / Hook timed out in …)多半是负载/时序,不是本 PR 的回归;
断言(AssertionError: …)才指向真实的行为改变。两者的 FAIL 行长得一模一样,只有这一行能区分。

⚠️ 断言这一侧有一类例外,判据是断言在测什么,不是它是不是 AssertionError。 断言的对象是产品行为(一个值、一个形状、一次拒收)⇒ 照上面读:真实的行为改变,去查,⛔ 不要重排掉;
断言的对象是这次实验自身的有效性前提(跑完的耗时、负载下的先后、任何只在时间预算内才成立的条件)⇒ 它跟超时是同一类,同样对负载敏感,重排一次是合法的判别手段。
识别是机械的:断言的消息或它比较的值本身点名了一段时长、一个时间戳、一个耗时计数。实测过的一对 —— AssertionError: SecurityPlugin.init() ran: expected false to be true 测的是产品行为(真回归);
AssertionError: this run took over a second, so second-precision stamps could have differed too: expected 1006 to be less than 1000 测的是实验前提:它守护的那条不变式当时是绿的,同一个 head 原样重排一次即成功。
穿着 AssertionError 外衣的时间测量,仍然是时间测量。(⛔ 这只改「怎么读一次红」,不改「哪些测试可以重排」——后者由别处管。)

跨 PR 相同签名(24h,按失败测试文件聚合):

  • packages/auth/src/__tests__/AuthProvider.test.tsx — 24h 窗口内只有本 PR 撞到过,暂不汇总(再有一个不同 PR 撞到就会自动开汇总 issue)。
  • ⚠️ 24h 评论账本没读完(超过 5 页仍未读到窗口尽头),所以上面的「不同 PR 数」是下界,不是全量。

历史信号:

  • 本 PR 过去 24h 无队列失败记录(首次)。
  • 过去 24h 队列共有 3 个失败构建(不含本次)。

分诊清单:

  1. 失败测试在本 PR 改动的包里 → 真回归,修 PR。
  2. 失败测试与本 PR 无关 → 看上面的「跨 PR 相同签名」;已有汇总 issue ⇒ flaky/环境问题实锤,去那张 issue 上谈,修好前重排只会再烧一轮全队列。
  3. 两者都不是 → 可能与同组 PR 语义冲突;等前面的 PR 落地或失败出队后再重排一次即可,不要连续重排。

Generated by Claude Code · merge-queue-triage workflow (#4859)

@github-actions

Copy link
Copy Markdown
Contributor

⛔ merge queue 构建失败 — 先分诊,再决定要不要重排

队列构建 45751264432 红了。队列跑的是全量套件(PR 侧 CI 只跑 affected 子集),
所以失败的测试可能在本 PR 没碰过的包里 —— 那不是重排能修的。每次盲目重排都会让排在后面的所有 PR 重建一轮。

分类:failure —— 按下面的日志分诊。

失败的 job(日志抽取,best effort):

  • Test UI (6/16) — 失败步骤: Run the ui tests (shard 6/16)

    × CONTROL: a whole-type invalidation of `object` on the bundle route still shows the skeleton 1139ms
    FAIL   dom  packages/app-shell/src/console/__tests__/AppContent.draftSaveKeepsList-35932.test.tsx > objectstack#35932 — the same, on an app with a bundle > CONTROL: a whole-type invalidation of `objec
      ↳ 失败原因: AssertionError: expected false to be true // Object.is equality
    

↳ 失败原因 是判读的关键:超时(Test timed out in … / Hook timed out in …)多半是负载/时序,不是本 PR 的回归;
断言(AssertionError: …)才指向真实的行为改变。两者的 FAIL 行长得一模一样,只有这一行能区分。

⚠️ 断言这一侧有一类例外,判据是断言在测什么,不是它是不是 AssertionError。 断言的对象是产品行为(一个值、一个形状、一次拒收)⇒ 照上面读:真实的行为改变,去查,⛔ 不要重排掉;
断言的对象是这次实验自身的有效性前提(跑完的耗时、负载下的先后、任何只在时间预算内才成立的条件)⇒ 它跟超时是同一类,同样对负载敏感,重排一次是合法的判别手段。
识别是机械的:断言的消息或它比较的值本身点名了一段时长、一个时间戳、一个耗时计数。实测过的一对 —— AssertionError: SecurityPlugin.init() ran: expected false to be true 测的是产品行为(真回归);
AssertionError: this run took over a second, so second-precision stamps could have differed too: expected 1006 to be less than 1000 测的是实验前提:它守护的那条不变式当时是绿的,同一个 head 原样重排一次即成功。
穿着 AssertionError 外衣的时间测量,仍然是时间测量。(⛔ 这只改「怎么读一次红」,不改「哪些测试可以重排」——后者由别处管。)

跨 PR 相同签名(24h,按失败测试文件聚合):

  • packages/app-shell/src/console/__tests__/AppContent.draftSaveKeepsList-35932.test.tsx — 24h 窗口内只有本 PR 撞到过,暂不汇总(再有一个不同 PR 撞到就会自动开汇总 issue)。
  • ⚠️ 24h 评论账本没读完(超过 5 页仍未读到窗口尽头),所以上面的「不同 PR 数」是下界,不是全量。

历史信号:

  • ⚠️ 本 PR 过去 24h 已在队列失败 1 次(不含本次)。 内容未变而反复失败 ⇒ 高度怀疑 flaky 测试或与同组 PR 的语义冲突,重排不解决。
  • 过去 24h 队列共有 4 个失败构建(不含本次)。

分诊清单:

  1. 失败测试在本 PR 改动的包里 → 真回归,修 PR。
  2. 失败测试与本 PR 无关 → 看上面的「跨 PR 相同签名」;已有汇总 issue ⇒ flaky/环境问题实锤,去那张 issue 上谈,修好前重排只会再烧一轮全队列。
  3. 两者都不是 → 可能与同组 PR 语义冲突;等前面的 PR 落地或失败出队后再重排一次即可,不要连续重排。

Generated by Claude Code · merge-queue-triage workflow (#4859)

Merged via the queue into main with commit 8a3315a Nov 26, 2026
76 checks passed
@objectstack-fleet
objectstack-fleet Bot deleted the claude/project-thread-dlk17q branch November 26, 2026 04:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file documentation Improvements or additions to documentation size/l tests tooling Fix lands in tooling, not a product package — enters pm:queue only with Unblocks: or a named surface

Projects

None yet

Development

Successfully merging this pull request may close these issues.

search_knowledge: the one definition gains scope, granularity and groupBy, for the MCP door and the in-app agent alike

2 participants